using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsMatreturndetailTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Matreturndetail"; 

		public const string C_BILLDETAILID = "BILLDETAILID";
		public const string C_BILLID = "BILLID";
		public const string C_MATINSTOCKID = "MATINSTOCKID";
		public const string C_MATINSTOCKDETAILID = "MATINSTOCKDETAILID";
		public const string C_WORKORDERNO = "WORKORDERNO";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_NUMS = "NUMS";
		public const string C_MMNUMBER = "MMNUMBER";
				
		public BsMatreturndetailTable()
		{
			_tableName ="Bs_Matreturndetail";
		}

		protected static BsMatreturndetailTable _current;

		public static BsMatreturndetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsMatreturndetailTable();

			_current.Add(C_BILLDETAILID, new ColumnInfo(C_BILLDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_BILLID, new ColumnInfo(C_BILLID, "", false, typeof(String)));
			_current.Add(C_MATINSTOCKID, new ColumnInfo(C_MATINSTOCKID, "", false, typeof(String)));
			_current.Add(C_MATINSTOCKDETAILID, new ColumnInfo(C_MATINSTOCKDETAILID, "", false, typeof(Decimal?)));
			_current.Add(C_WORKORDERNO, new ColumnInfo(C_WORKORDERNO, "", false, typeof(String)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_NUMS, new ColumnInfo(C_NUMS, "", false, typeof(Decimal?)));
			_current.Add(C_MMNUMBER, new ColumnInfo(C_MMNUMBER, "", false, typeof(Decimal?)));
						
		}

		public ColumnInfo BILLDETAILID
		{
			get { return this[C_BILLDETAILID];}
		}

		public ColumnInfo BILLID
		{
			get { return this[C_BILLID];}
		}

		public ColumnInfo MATINSTOCKID
		{
			get { return this[C_MATINSTOCKID];}
		}

		public ColumnInfo MATINSTOCKDETAILID
		{
			get { return this[C_MATINSTOCKDETAILID];}
		}

		public ColumnInfo WORKORDERNO
		{
			get { return this[C_WORKORDERNO];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo NUMS
		{
			get { return this[C_NUMS];}
		}

		public ColumnInfo MMNUMBER
		{
			get { return this[C_MMNUMBER];}
		}

		
	}
}


